import { Component, Vue } from 'vue-property-decorator';
import { Overlay } from 'vant';
@Component({
  components: {
    vanOverlay: Overlay
  }
})
export default class LoadingComponent extends Vue {
  visible = false;
  created ():void {
    const elem = document.createElement('div');
    document.body.appendChild(elem);
    this.$mount(elem);
  }

  show ():void {
    this.visible = true;
  }

  hide ():void {
    this.visible = false;
  }
}
